<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateVhuDoituongTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('vhu_doituong', function(Blueprint $table)
		{
			$table->increments('idDoiTuong');
			$table->string("DoiTuong",2);
			$table->string("Ten_DoiTuong");
			$table->integer('NhomUT')->default(1);
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('vhu_doituong');
	}

}
